#include <iostream>

using namespace std;

void func() noexcept
{
    throw 5;        // noexcept不能保证一定不抛出异常
}

int main()
{
    try
    {
        func();
    }
    catch(int e)     // noexcept函数抛出的异常无法被catch到
    {
        cout<<"Exception:"<<e<<endl;
    }
}